<?php
class CmsTask {
  
  protected function execute($arguments = array(), $options = array())
  {
    $databaseManager = new sfDatabaseManager($this->configuration);

    // cleanup Lucene index
    $index = JobeetJobTable::getLuceneIndex();

    $index->optimize();

    $this->logSection('lucene', 'Cleaned up and optimized the job index');
  }
}
?>